package com.itheima.mm.service.impl;

import com.itheima.mm.base.BaseService;
import com.itheima.mm.dao.CompanyDao;
import com.itheima.mm.pojo.Company;
import com.itheima.mm.service.CompanyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ShenHD
 * @Date 2021/8/11
 */
@Service
@Slf4j
public class CompanyServiceImpl extends BaseService implements CompanyService {
    @Autowired
    private CompanyDao companyDao;
    @Override
    public List<Company> findListAll() {
        List<Company> companyList = companyDao.selectListAll();
        return companyList;
    }
}
